package com.weipai.education.dao;

import com.weipai.education.model.Document;
import com.weipai.education.model.Message;
import com.weipai.education.model.Picture;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/11 14:17
 */
public interface SystemDao {
    List<Map<String,Object>> pictureList(Integer start, Integer size);

    Integer pictureListAmount();

    int updatePicture(Picture picture);

    int insertPicture(Picture picture);

    Picture selectPictureByPrimaryKey(String id);

    int batchDeleteById(String[] id);

    int updateDocument(Document document);

    int insertDocument(Document document);

    Document selectDocumentByPrimaryKey(Integer id);

    Integer insertMsg(Message message);

    List<Map<String,Object>> selectAllMessage(Integer userId);

    Integer getMessageNum(Integer userId);

    Integer changeMessageStatus(Integer messageId);
}
